package org.dtrd.modules.record.entity.bean;

/**
 * 统计指标Bean 肾功能、糖化、BMI、血压、血糖
 * 
 * @author lizhongcheng
 * @version
 * @since 2015-12-10
 */
public class StatisticsBean implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 489614602901178170L;
	/**
	 * 定义本类的私有变量
	 */
	private Integer id;
	private Integer count;
	private Integer patientId;
	private Integer lowCounts;
	private Integer normalCounts;
	private Integer highCounts;
	private Float lowestValue;
	private Float avgValue;
	private Float highestValue;
	private Float highPercent;
	private Float lowPercent;
	private Float normalPercent;
	private Float bmiAvgValue;
	private Float bmiHighestValue;
	private Float bmiLowestValue;


	/**
	 * 本类的实例化方法
	 */
	public StatisticsBean() {
	}

	/**
	 * 本类的带参数的实例化方法
	 */
	public StatisticsBean(Integer id, Integer count, Integer patientId, Integer lowCounts, Integer normalCounts, Integer highCounts,
                          Float lowestValue, Float avgValue, Float highestValue) {
		super();
		this.id = id;
		this.count = count;
		this.patientId = patientId;
		this.lowCounts = lowCounts;
		this.normalCounts = normalCounts;
		this.highCounts = highCounts;
		this.lowestValue = lowestValue;
		this.avgValue = avgValue;
		this.highestValue = highestValue;
	}

	public StatisticsBean(Integer id, Integer count, Integer patientId, Integer lowCounts, Integer normalCounts, Integer highCounts,
                          Float lowestValue, Float avgValue, Float highestValue, Float highPercent, Float lowPercent, Float normalPercent) {
		super();
		this.id = id;
		this.count = count;
		this.patientId = patientId;
		this.lowCounts = lowCounts;
		this.normalCounts = normalCounts;
		this.highCounts = highCounts;
		this.lowestValue = lowestValue;
		this.avgValue = avgValue;
		this.highestValue = highestValue;
		this.highPercent = highPercent;
		this.lowPercent = lowPercent;
		this.normalPercent = normalPercent;
	}

	public void init() {
		this.id = 0;
		this.count = 0;
		this.patientId = 0;
		this.lowCounts = 0;
		this.normalCounts = 0;
		this.highCounts = 0;
		this.lowestValue = 0f;
		this.avgValue = 0f;
		this.highestValue = 0f;
	}

	/**
	 * 以本类为参数传入时，实例化本类的方法
	 */
	public void copyFrom(StatisticsBean vo) {
		id = vo.id;
		count = vo.count;
		patientId = vo.patientId;
		lowCounts = vo.lowCounts;
		normalCounts = vo.normalCounts;
		highCounts = vo.highCounts;
		lowestValue = vo.lowestValue;
		avgValue = vo.avgValue;
		highestValue = vo.highestValue;
	}

	/**
	 * id的赋值方法
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPatientId() {
		return patientId;
	}

	public void setPatientId(Integer patientId) {
		this.patientId = patientId;
	}

	public Integer getLowCounts() {
		return lowCounts;
	}

	public void setLowCounts(Integer lowCounts) {
		this.lowCounts = lowCounts;
	}

	public Integer getNormalCounts() {
		return normalCounts;
	}

	public void setNormalCounts(Integer normalCounts) {
		this.normalCounts = normalCounts;
	}

	public Integer getHighCounts() {
		return highCounts;
	}

	public void setHighCounts(Integer highCounts) {
		this.highCounts = highCounts;
	}

	public Float getLowestValue() {
		return lowestValue;
	}

	public void setLowestValue(Float lowestValue) {
		this.lowestValue = lowestValue;
	}

	public Float getHighestValue() {
		return highestValue;
	}

	public void setHighestValue(Float highestValue) {
		this.highestValue = highestValue;
	}

	public Integer getId() {
		return id;
	}

	public Float getAvgValue() {
		return avgValue;
	}

	public void setAvgValue(Float avgValue) {
		this.avgValue = avgValue;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Float getHighPercent() {
		return highPercent;
	}

	public void setHighPercent(Float highPercent) {
		this.highPercent = highPercent;
	}

	public Float getLowPercent() {
		return lowPercent;
	}

	public void setLowPercent(Float lowPercent) {
		this.lowPercent = lowPercent;
	}

	public Float getNormalPercent() {
		return normalPercent;
	}

	public void setNormalPercent(Float normalPercent) {
		this.normalPercent = normalPercent;
	}

	public Float getBmiAvgValue() {
		return bmiAvgValue;
	}

	public void setBmiAvgValue(Float bmiAvgValue) {
		this.bmiAvgValue = bmiAvgValue;
	}

	public Float getBmiHighestValue() {
		return bmiHighestValue;
	}

	public void setBmiHighestValue(Float bmiHighestValue) {
		this.bmiHighestValue = bmiHighestValue;
	}

	public Float getBmiLowestValue() {
		return bmiLowestValue;
	}

	public void setBmiLowestValue(Float bmiLowestValue) {
		this.bmiLowestValue = bmiLowestValue;
	}

	@Override
	public String toString() {
		return "StatisticsBean [" + (id != null ? "id=" + id + ", " : "") + (count != null ? "count=" + count + ", " : "")
				+ (patientId != null ? "patientId=" + patientId + ", " : "") + (lowCounts != null ? "lowCounts=" + lowCounts + ", " : "")
				+ (normalCounts != null ? "normalCounts=" + normalCounts + ", " : "") + (highCounts != null ? "highCounts=" + highCounts + ", " : "")
				+ (lowestValue != null ? "lowestValue=" + lowestValue + ", " : "") + (avgValue != null ? "avgValue=" + avgValue + ", " : "")
				+ (highestValue != null ? "highestValue=" + highestValue + ", " : "")
				+ (highPercent != null ? "highPercent=" + highPercent + ", " : "") + (lowPercent != null ? "lowPercent=" + lowPercent + ", " : "")
				+ (normalPercent != null ? "normalPercent=" + normalPercent : "") + "]";
	}

}